<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<IEnumerable<League>>" %>
<%@ Import Namespace="TeamCommunitySolution.Domain.DataLayer.Leagues"%>
<table>
  <tr>
    <th>
    </th>
    <th>
      Name
    </th>
  </tr>
  <% foreach(var item in Model) { %>
  <tr>
    <td>
      <%= Html.ActionLink("Edit", "LeagueEdit", "League", new { id=item.Id }, null) %>
      |
      <%= Html.ActionLink("Details", "Details", "League", new { id=item.Id }, null) %>
    </td>
    <td>
      <%= Html.Encode(item.Name) %>
    </td>
  </tr>
  <% } %>
</table>
